package com.wfcm.dao;

import com.wfcm.entity.MemberGift;
import com.wfcm.entity.WfMemberEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 平台用户信息表
 * 
 * @author xlf
 * @email xlfbe696@gmail.com
 * @date 2018-01-22 13:57:19
 */
public interface WfMemberDao extends BaseDao<WfMemberEntity> {

	void updateStudyTime(WfMemberEntity wfMember);

	WfMemberEntity queryByIdentity(String tokenId);

	WfMemberEntity queryByOpenid(String Openid);
	
	WfMemberEntity queryByMobile(String mobile);

	Integer addGift(MemberGift memberGift);

	void addStudyTime(Map<String, Object> map);

	WfMemberEntity queryWx(Integer userid);

	Integer updateGift(@Param("id") Integer id);

	List<MemberGift> searchGift(@Param("telephone") String telephone);
	
}
